import type { PageQuery } from '@/types/app'

export type AssetInteractionRecords = {
  id: string
  dataType: string
  serverIp: string
  serverPort: number
  serverType: string
  requestCount: number
  resultFlag: string
  time: string
  protocol: string
  clientIp: string
  clientPort: number
  clientType: string
  resourcePath: string
  filing: string
  handstatus: string
}

export type GetAssetInteractionParams = {
  page?: number
  pageSize?: number
  interfaceName?: string
  url?: string
  method?: string
  site?: string
  isRecorded?: boolean | ''
  createBeginTime?: string
  createEndTime?: string
}
// export type exportAssetInteractionChecked = {
//   ids: (string | number)[]
// }
export interface ExportAssetInteractionParams extends GetAssetInteractionParams {
  ids: (string | number)[]
}

/**
 * 获取接口列表参数
 */
export interface GetAssetInteraction extends PageQuery {}
